package com.scu.service;
import com.scu.pojo.User;
import com.scu.pojo.UserSearch;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
public interface UserService {
    public List<User> checkLoginInfo(String email,String pwd);
    public void addRegisterInfo(User user);
    public int modifyOnlineInfo(int id,int status);
    public List<User> checkFriends(int id);
    public int addFriend(int source_id,int target_id);
    public int deleteFriend(int source_id,int target_id);
    public int modifyLoginInfo(User user);
    public List<User> checkFriendsByPage(UserSearch info);
    public int getFriendsCount(UserSearch info);
    public int checkIsFollowedByMe(int u_id, int target_id);
    public List<User> checkMyFollows(int u_id);

    public void approvalFile(MultipartFile filecontent, String realPath);
}
